package com.rs.service.rs;

import java.util.List;
import java.util.Map;

import com.rs.model.CommonResult;
import com.rs.model.User;
import com.rs.model.Document;
import com.rs.model.Project;

public interface DocumentService {

	/*********APP************/

	//文档上传
	CommonResult<String> documentUploadApp(Document document);

	//查看用户所上传的所有文档
	CommonResult<List<Document>> documentViewUserUpFileApp(User user);

	//查询所有的项目名称
	CommonResult<List<Project>> doucumenLookAllProApp();

	//查询项目下的所有文档
	CommonResult<List<Document>> doucumenLookProAllDouApp(Project project);

	//查询文档详情
	CommonResult<Document> doucumenLookDetailsApp(Integer do_id);

	//文档预览
	CommonResult<String> doucumenPreviewApp(Integer do_id);

	//文档下载
	CommonResult<String> doucumenDownloadApp(Integer do_id);

	//文档删除
	CommonResult<String> doucumenDeleteOneApp(Map<String, Integer> map);

	/**********PC***************/
	//PC端查询所有的文档记录
	CommonResult<Map<String, Object>> doucumenLookAllPc(Integer pageNum);

	//pc端条件查询
	CommonResult<Map<String, Object>> doucumenConditionsPc(Document document);

	//pc端依据上传时间查询
	CommonResult<Map<String, Object>> documenUploadTimeQueryPc(Map<String, String> map);

	//pc端查询文档的详情
	CommonResult<Document> documenForDetailsPc(Integer do_id);

	//pc端下载
	CommonResult<Document> documenDownloadPc(Integer do_id);

}
